﻿#开启多线程编译
IF (WIN32)
		if(MSVC)
				OPTION(USE_MP "use multiple" ON)
				OPTION(ProjectConfig_Global_COMPILE_FLAGS_WITH_MP 
					"Set The Global Option COMPILE_FLAGS /MP to target." ON)
				if(ProjectConfig_Global_COMPILE_FLAGS_WITH_MP OR USE_MP)
					set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
					set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
				endif()
				set(VS_STARTUP_PROJECT ${PROJECT_NAME})
		ENDIF(MSVC)
ENDIF()

add_library(Controls STATIC
	itemWidget.cpp
	itemWidget.hpp
	MenuAction.hpp
	MenuAction.cpp
	ToolButtonBase.cpp
	ToolButtonBase.hpp
	ToolButtonUpDownLock.hpp
	ToolButtonUpDownLock.cpp
	ToolButtonUpDown.hpp
	ToolButtonUpDown.cpp
	ToolButtonUpDownArrow.hpp
	ToolButtonUpDownArrow.cpp
	ToolButtonLeftRight.hpp
	ToolButtonLeftRight.cpp
	ToolButtonLeftRightEntirety.cpp
	ToolButtonLeftRightEntirety.hpp
	ToolButtonIconLock.hpp
	ToolButtonIconLock.cpp
	ToolButtonIcon.hpp
	ToolButtonIcon.cpp
	ToolButtonIconArrow.hpp
	ToolButtonIconArrow.cpp
	ToolButtonIconArrowEntirety.hpp
	ToolButtonIconArrowEntirety.cpp
	ToolButtonIconTextArrow.hpp
	ToolButtonIconTextArrow.cpp
	ToolButtonIconTextArrowEntirety.hpp
	ToolButtonIconTextArrowEntirety.cpp
	ToolButtonIconTextEntirety.hpp
	ToolButtonIconTextEntirety.cpp
	SimpleCombobox.cpp
	SimpleCombobox.hpp
	groupBox.cpp
	groupBox.hpp
	control.qrc
	ControslHead.hpp
)
target_link_libraries(Controls PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets)
target_include_directories(
	Controls
	PUBLIC
	${CMAKE_CURRENT_LIST_DIR}
)
